{include file="./headStart.tpl"}
{literal}
<script src="js/application.js" type="text/javascript" charset="utf-8"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
$(document).ready(function(){   
$("#categoryId").focus();
//subCatFilterCombo();
});
//function subCatFilterCombo()
//{
//  var dataString = "categoryId=" + $('#categoryId').val();
//  $.ajax({
//  	url: "./subCatFilterAj.php",
//  	cache: false,
//  	data: dataString,
//  	success:function(data){
//  		$('#subCatFiltComboBox').html(data);
//  		$('#subCatFiltId').focus();
//    }
//  });
//  itemFilterCombo();
//}
//function itemFilterCombo()
//{
//  var dataString = "subCategoryId=" + $('#subCatFiltId').val() + "&categoryId=" + $("#categoryId").val();
//  $.ajax({
//  	url: "./itemFilterAj.php",
//  	cache: false,
//  	data: dataString,
//  	success:function(data){
//  		$('#itemFiltId').html(data);
//  		$('#itemFiltId').focus();
//    }
//  });
//}
//function getFilterData()
//{
//  var dataString = "itemId=" + $("#itemId").val() + "&subCategoryId=" + $("#subCatFiltId").val() + "&categoryId=" + $("#categoryId").val();
//  $.ajax({
//    type: "GET",
//    url:  "productAj.php",
//    data: dataString,
//    success: function(data){ 
//      $("#filteredData").html(data);
//    }
//  });
//}
</script>
{/literal}
{include file="./headEnd.tpl"}
<table border='0' cellpadding='1' cellspacing='2' align='center'>
<tr>
  <td class="table1" align="center" colspan="4"><font style="font-size: 16px"><b> Product Filter </b></font></td>
</tr>
<tr>
  <td>
    <div id="search">
        <label for="filter">Filter :</label> <input type="text" name="filter" value="" id="filter" />
      </div>
  </td>
</tr>
</table>
<table border='0' cellpadding='1' cellspacing='2' align='center' id="resultTable">
<tr>
  <td  class="table1" align='center'colspan="8"><B>Product Available</td>
</tr>
<thead>
<tr>
  {*<td  class="table1" align='center' ><B>&nbsp;</td>*}
	<td  class="table1" align='center' ><B>Product Name</td>
	<td  class="table1" align='center' ><B>Category</td>
	<td  class="table1" align='center' ><B>Sub Category</td>
	<td  class="table1" align='center' ><B>Product Make</td>
	<td  class="table1" align='center' ><B>Model No.</td>
	<td  class="table1" align='center' ><B>Current Stock</td>
	<td  class="table1" align='center' ><B>Max Level</td>
	<td  class="table1" align='center' ><B>Min Level</td>
</tr>
</thead>
 <tbody>
{section name="sec" loop=$itemDetailArray}
<tr>
  <!--<td class="table2" align="center">
    <a href="#" class="link"><img src="./images/b_edit.png" border="0" width="15" height="15"></a>
	</td>-->
	{*<td class="table3" align="center">
		<a href="itemDelete.php?itemId={$itemDetailArray[sec].itemId}" class="link" onclick="return confirm('Are You Sure?');"><img src="./images/deleteIcon.png" border="0" width="15" height="15"></a>
	</td>*}
	<td class="table3" align="left"> {$itemDetailArray[sec].itemName}</td>
	<td class="table3" align="left"> {$itemDetailArray[sec].categoryName}</td>
	<td class="table3" align="left"> {$itemDetailArray[sec].subCategoryName}</td>
	<td class="table3" align="right"> {$itemDetailArray[sec].itemMake} </td>
	<td class="table3" align="right"> {$itemDetailArray[sec].modelNo}</td>
	<td class="table3" align="right"> <input type="text" name="currentStock[{$itemDetailArray[sec].itemId}]" value="{$itemDetailArray[sec].currentStock}" align="right" size="7" DISABLED='DISABLED'/></td>
	<td class="table3" align="right"> {$itemDetailArray[sec].maxLevel}</td>
	<td class="table3" align="right"> {$itemDetailArray[sec].minLevel}</td>
</tr>
{sectionelse}
<tr><td class="table2" align="center" colspan="9"> <h2><font color="red"><b> Empty Record.....</b></font></h2></td></tr>
{/section}
{if $i != 0}
<!--<tr>
	<td class="table2" align="center" colspan="9"><input type="submit" name="saveBtn" value=" S A V E " /></td>
</tr>-->
{/if}
</tbody>
</table>
{include file="footer.tpl"}